<div class="welfare-plan">
  <ul class="row list-unstyled">
    <% @employee_welfares.each do |welfare| %>
      <li class="col-sm-8">
        <span class="col-sm-5">福利名称: <%= welfare.welfare_name %></span>&nbsp;&nbsp;
        <span class="col-sm-2">福利金额: <%= welfare.amount %></span>&nbsp;&nbsp;
        <%= link_to '删除','javascript:void(0)',
          onclick: "ajax_function('/admin/company_configurations/destroy_configuration', 'employee_welfare', 'EmployeeWelfareConfiguration', #{welfare.id})",
          id: "delete_employee_welfare#{welfare.id}" %>
      </li>
    <% end %>
    <%= form_for(@employee_welfare,:url => create_employee_welfare_admin_company_configurations_path,  html: { multipart: true}) do |f| %>
      <table>
        <tr>
          <td><%= f.label :福利名称 %></td>
          <td><%= f.text_field :welfare_name, required: true, placeholder: "福利名称", style: "width:10em" %></td>
          <td><%= f.label :福利金额 %></td>
          <td><%= f.text_field :amount, required: true, placeholder: "", style: "width:10em" %></td>
          <td><%= f.label :'元/月' %></td>
        </tr>
        <tr>
          <td colspan='2'>
            <%= f.submit "添加" %>
          </td>
        </tr>
      </table>
    <% end %>
  </ul>
</div>
